package com.rongmai.db.mapper;

import com.rongmai.db.model.SubmitProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 张
* @description 针对表【submit_product(已投项目)】的数据库操作Mapper
* @createDate 2024-02-03 14:19:05
* @Entity com.rongmai.db.model.SubmitProduct
*/
public interface SubmitProductMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SubmitProduct record);

    SubmitProduct selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SubmitProduct record);

    int updateByPrimaryKey(SubmitProduct record);

    List<SubmitProduct> queryByCompanyId(Integer companyId);

    List<SubmitProduct> queryByDepartmentId(Integer departmentId);

    void deleteByCompanyIdAndDepartmentId(@Param("companyId") Integer companyId, @Param("departmentAuditId") Integer departmentAuditId);
}
